between

open fun between(start: Timestamp, end: Timestamp): TimeRange

Creates TimeRange between two points in time.

Parameters

start

the start point in time

end

the end point in time

Throws

if start is equal or after end.